package com.itlong.cloud.iottp;

import com.itlong.cloud.POJO.DTO.common.WeChatVisitorMsgDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <desc>
 *      微信模板消息暴露接口
 * </desc>
 *
 * @createDate 2019/04/26
 */
@FeignClient(name = "iot-tp-service")
public interface IWeChatTemplateMsgServiceClient {

    /**
     * <desc>
     *      发送微信公众号模板消息，目前业务为写字楼访客预约相关
     * </desc>
     *
     * @param weChatVisitorMsgDTO 访客预约流程发送微信公众号模板消息DTO
     * @author wangzhi
     * @createDate 2019/04/26
     */
    @PostMapping(path = "/iotTp/weChat/sendWeChatTemplateMsg")
    void sendWeChatTemplateMsg(@RequestBody WeChatVisitorMsgDTO weChatVisitorMsgDTO) throws Exception;

}
